package ksj.common;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import bean.ReportDef;
import bean.ReportDefPK;

public interface ReportDefRepository extends CrudRepository<ReportDef, ReportDefPK> {
	@Query(value = "select definition_json, report_template from #{#entityName} where id = ?")
	List<Object[]> getReports(int id);
	
//	@Query(value = "select report_template, definition_json from #{#entityName} where id=?1")
//    String getDefinition_json(int id);

}
